package com.hms.dao.impl;

import org.springframework.stereotype.Component;

import com.hms.dao.IAdminDao;
import com.hms.entity.Admin;

@Component("adminDao")
public class AdminDao extends BaseDao<Admin, String> implements IAdminDao {

	@Override
	public boolean isExistByUserName(String userName) {
		Admin admin = super.get("username", userName);
		return admin==null?false:true;
	}

	@Override
	public Admin getAdminByuUserName(String userName) {
		return super.get("username",userName);
	}

}
